package com.xczz.model;

import lombok.Data;
import javax.persistence.*;

@Data
@Entity
@Table(name = "sys_user_role", schema = "ws")
@IdClass(SysUserRolePK.class)
public class SysUserRole {

    @Id
    @Column(name = "user_id", nullable = false)
    private Long userId;

    @Id
    @Column(name = "role_id", nullable = false)
    private Long roleId;
}